package ltd.jdsoft.cute.channel.model;

import java.io.Serializable;

import org.apache.ibatis.type.Alias;

/**
 * 通道信息定义，第三方的调用当作一个通道，每个通道对应一个扩展实现节点
 * 
 * @author zhengzhq
 *
 */
@Alias("Channel")
public class Channel implements Serializable {

  private static final long serialVersionUID = 6701855423462147087L;

  // 通道id
  private long id;
  // 通道名称
  private String name;
  // 通道对应的扩展点名称
  private String extName;
  // 状态，1：启用，0:禁用
  private int status;
  // 通道类型，根据具体的业务来灵活定义
  private int type;
  // 权重，可以控制调用的比率
  private int weight;
  // 备注信息
  private String remark;

  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getExtName() {
    return extName;
  }

  public void setExtName(String extName) {
    this.extName = extName;
  }

  public int getStatus() {
    return status;
  }

  public void setStatus(int status) {
    this.status = status;
  }

  public int getType() {
    return type;
  }

  public void setType(int type) {
    this.type = type;
  }

  public String getRemark() {
    return remark;
  }

  public void setRemark(String remark) {
    this.remark = remark;
  }

  public int getWeight() {
    return weight;
  }

  public void setWeight(int weight) {
    this.weight = weight;
  }
}
